package com.wyx.dao;


import com.wyx.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    //增
    int addBook(Books book);

    //删
    int deleteBookById(int id);

    //改
    int updateBook(Books book);

    //查
    Books queryBookById(int id);

    //查
    List<Books> queryAllBook();

    //条件查询
    Books queryBookByName(@Param("bookName") String bookName);
}
